package org.wutopia.labcloud.domain.product.dao.entity.mysql;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.wutopia.labcloud.domain.product.dao.entity.BaseEntity;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("product_specification")
public class ProductSpecification extends BaseEntity {

    private Long productId;

    private String item;

    private String value;


    @Override
    public boolean equals(Object obj) {
        ProductSpecification p = (ProductSpecification)obj;
        if(this.getId() == null) {
            return false;
        }
        return (this.getId().equals(p.getId()));
    }
}
